.character_main {
  width: 100%;
  background-image: url(../images/booking_paper_bg.png);
  padding-top: 80px;
  background-repeat: no-repeat;
  background-size: cover;
 padding-inline: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  ;
  overflow: hidden;
  background-position-y: 14px;
  position: relative;
  padding-bottom: 40%;
}

.character_main .title_container {}

.character_main .title_container h3 {
  position: relative;
  bottom: unset;
  right: unset;
  transform: rotate(-4deg);
  white-space: wrap;
}

.character_container {
     width: 100%;
    max-width: 1280px;
    min-width: 320px;
    margin: 0 auto;
    display: flex
;
    justify-content: flex-start;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    position: relative;
    z-index:3;

}

.flip-card {
  background-color: transparent;
  width: 100%;
  aspect-ratio: 340/620;
  min-width: 300px;
  max-width: 340px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.character_container_bottom{
  position: absolute;
  bottom: 0;
  width: 100%;
  aspect-ratio: 2160/906;
  background-image: url(../images/2025images/character_deco_bottom.png);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}
/* --- DESKTOP (hover supported) --- */
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner {
    animation: flipSpring 0.8s forwards;
  }
  .flip-card:not(:hover) .flip-card-inner {
    animation: flipSpringBackward 0.8s forwards;
  }
}

/* --- MOBILE (no hover) --- */
@media (hover: none) and (pointer: coarse) {
  .flip-card.flipped .flip-card-inner {
    animation: flipSpring 0.8s forwards;
  }
  .flip-card:not(.flipped) .flip-card-inner {
    animation: flipSpringBackward 0.8s forwards;
  }
}

.flip-card-front,
.flip-card-back {
  position:absolute;
  width: 100%;
  height: 100%;
 -webkit-perspective: 0;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    visibility:visible;
    backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg) ;
}


.flip-card-front_top {
  width: 100%;
  aspect-ratio: 327/432;
  background-position: center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.flip-card-back .flip-card-front_top img {
  opacity: 0.1;
  position: absolute;
  transform: rotateY(180deg);

}

.flip-card-front_top img {
  width: 85%;
  height: auto;
  object-fit: contain;
}
.flip-card-back .flip-card-front_top{
  padding-top: 10%;
}
.flip-card-back .flip-card-front_top p {
      padding: 0px 27px;
    color:#242711;
    text-align: center;
    font-family: Inter ,'Noto Sans TC';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    width: 100%;

    display: flex
;
    align-items: center;
    justify-content: center;
}


.flip-card-front_bottom {
  width: 100%;
  aspect-ratio: 340 / 171;
  background-position: center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  flex-direction: column;
  /* justify-content: center; */
  background-image: url(../images/2025images/card_bottom.png);
  margin-top: -4px;
  padding-top: 38px;
}

.flip-card-front_bottom p {
  color: #29110B;
  text-align: center;

  /* EN/Sub Title */
  font-family: "Autour One";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  /* 28px */
}

.redColor {
  background-image: url(../images/2025images/card_red.png);
}

.greenColor {
  background-image: url(../images/2025images/card_green.png);
}

.whiteColor {
  background-image: url(../images/2025images/card_white.png);
}


#character_bear_dad {
  width: 98%;
}
#character_bear_mom {
  width: 48%;
}
#character_babybear {
  width: 48%;
}
#character_fox{
  width: 42%;
}
#character_crocodile{
  width: 70%;
}
#character_rabbit{
  width: 57%;
}
#character_hedgehog{
  width: 93%;
}
.en .hedgehog_name{
  padding-top: 26px;
}
#character_alpaca{
  width: 57%;
}

#character_capy{
   width: 56%;
}
#character_elephant{
   width: 78%;
   position: absolute;
   bottom: 16px;
}
#character_giraffe{
  width: 51%;
  position: absolute;
   bottom: 16px;
}
#character_hippo{
  width: 73%;
}
#character_redpandas{
  width: 79%;
}
#character_hippo_female, #character_koala{
  width: 100%;
}
.character_main .session_container_peakTime{
  margin-bottom: 56px;
  margin-top: 0px;
  width: 100%;
  max-width: 340px;
}
@keyframes flipSpringBackward {
  0% {
    transform: rotateY(180deg)  translateZ(1px);
  }

  60% {
    transform: rotateY(-20deg)  translateZ(1px);
  }

  /* overshoot back */
  100% {
    transform: rotateY(0deg)  translateZ(1px);
  }

  /* settle */
}

@keyframes flipSpring {
  0% {
    transform: rotateY(0deg)  translateZ(1px);
  }

  60% {
    transform: rotateY(200deg)  translateZ(1px);
  }

  /* overshoot */
  100% {
    transform: rotateY(180deg)  translateZ(1px);
  }

  /* settle back */
}

.flip-card-inner {
  -webkit-transform-style: preserve-3d;
}

.flip-card-front, .flip-card-back {
  -webkit-backface-visibility: hidden;
}

  .character_main .session_container_peakTime span{
    width: 50%;
    cursor: pointer;
  }

#icn_circle{
    position: absolute;
    left: 4px;
    top: -10px;
    animation: 1s scaleFinger linear infinite;
}

.noticePopup .popupTitle{
  margin: 24px auto;
  text-align: center;
}

.noticePopup .popupInner {
  color:  #00432F;
text-align: center;
font-family: "Autour One";
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: 150%; /* 36px */
text-transform: uppercase;
}

@keyframes scaleFinger {
 0%{
  scale:1
 }
 50%{
  scale: 1.2;
 }
 100% {
  scale:1
 }
}

.noticePopup .popupTitle{
  width: fit-content;
  position: relative;
}
@media (max-width: 960px) {
  .character_main .title_container{
    margin-bottom: 48px;
  }

  .character_main .session_container_peakTime{
  margin-bottom: 48px;
  margin-top: 0px;
  
}
} 

@media (max-width: 350px) {
 .character_container {
  max-width: 300px;
 }
.flip-card-back .flip-card-front_top p {
  font-size: 14px;
}
.flip-card-front_bottom p{
  font-size: 18px;
}

}